

#include "HttpCmdBase.h"


bool CHttpCmdBase::HttpCmdHandlerFunc(const std::string &strReqMessage, std::string &strRspData)
{
    ClearCmdLocalData();

    if(!CheckParamVaild(strReqMessage))
    {
        neb::CJsonObject resJsonObj;
        resJsonObj.Add("status", "Fail");
        resJsonObj.Add("message", "Received bad request data.");
        strRspData = resJsonObj.ToString();

        return false;
    }


    FillRspData(strRspData);
    return true;

}

bool CHttpCmdBase::CheckParamVaild(const std::string &strReqMessage)
{
    return true;
}

bool CHttpCmdBase::FillRspData(std::string &strRspData)
{
    return true;
}


void CHttpCmdBase::ClearCmdLocalData()
{
    return ;
}



